// lib/app/data/repositories/user_repository_impl.dart
import 'package:flutter_clean_architecture/app/domain/models/user.dart';
import 'package:flutter_clean_architecture/app/domain/repositories/user_repository.dart';
import 'package:flutter_clean_architecture/app/data/datasources/user_remote_data_source.dart';

class UserRepositoryImpl implements UserRepository {
  final UserRemoteDataSource remoteDataSource;

  UserRepositoryImpl(this.remoteDataSource);

  @override
  Future<List<User>> getUsers() async {
    // 从远程数据源获取用户数据
    final usersFromRemote = await remoteDataSource.getUsers();
    // 可以添加本地缓存逻辑等
    return usersFromRemote;
  }
}
